/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.proyecto.dal;
import java.sql.Connection;  
import java.sql.DriverManager;  
import java.sql.SQLException; 



/**
 *
 * @author feli
 */
public class DatabaseUtil {
     
         private Connection con = null;  
          
        public Connection getConection() throws SQLException{  
            try{  
                Class.forName("org.postgresql.Driver");  
                con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/sigeb_bd/","postgres","sigeb_pass");  
            }  
            catch (SQLException e){  
                throw new SQLException(e);  
            }  
            catch(ClassNotFoundException e){  
                throw new SQLException(e);  
            }  
            catch(Exception e){  
                throw new SQLException(e);  
            }  
            return this.con;  
        }  
          
        public DatabaseUtil(){  
              
        }              
   
    
    }







